<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace Modules\System\Models;

class Log extends \App\Models\BaseModel {

	protected $table = 'system_logs';
	protected $fillable = ['title', 'name', 'url', 'method', 'client_ip', 'browser', 'user_id', 'data', 'remark', 'status'];
	protected $hidden = ['deleted_at'];

	public function user() {
		return $this->belongsTo('Modules\Auth\Models\Admin', 'user_id', 'uid');
	}
}
